﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace CheemsControl.Demo.Views.UserControl
{
    /// <summary>
    /// LightPieChartWindow.xaml 的交互逻辑
    /// </summary>
    public partial class LightPieChartWindow : Window
    {
        public LightPieChartWindow()
        {
            InitializeComponent();

            this.LightPieChart.Datas = new List<Models.SinglePieChartData>
            {
                new Models.SinglePieChartData()
                {
                    Title = "数据1",
                    Value = 20,
                    Background = new SolidColorBrush(System.Windows.Media.Color.FromArgb(0xFF,0xEA,0x42,0x35)),
                    BorderBursh = new SolidColorBrush(Colors.White),
                    BorderThickness = 2,
                },
                new Models.SinglePieChartData()
                {
                    Title = "数据2",
                    Value = 40,
                    Background = new SolidColorBrush(System.Windows.Media.Color.FromArgb(0xFF,0xFB,0xBC,0x05)),
                    BorderBursh = new SolidColorBrush(Colors.White),
                    BorderThickness = 2,
                },
                new Models.SinglePieChartData()
                {
                    Title = "数据3",
                    Value = 70,
                    Background = new SolidColorBrush(System.Windows.Media.Color.FromArgb(0xFF,0x4B,0xB1,0x5D)),
                    BorderBursh = new SolidColorBrush(Colors.White),
                    BorderThickness = 2,
                },
            };
        }
    }
}
